package com.fjut.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.fjut.model.activity.CouponInfo;
import com.fjut.model.activity.CouponUse;
import com.fjut.vo.activity.CouponUseQueryVo;

import javax.servlet.http.HttpServletRequest;
import java.util.Map;

/**
 * <p>
 * 优惠券信息 服务类
 * </p>
 *
 * @author DengTianxun
 * @since 2023-03-09
 */
public interface CouponInfoService extends IService<CouponInfo> {

    IPage<CouponUse> getCouponUsedPageInfo(Page<CouponUse> usePage, CouponUseQueryVo couponUseQueryVo);

    Boolean updateCouponInfo(Long couponUseId, Long orderId);

    Map<String,Object> getCouponUnusedInfo();

    Boolean issueCoupons(Long id);
}
